﻿@model IEnumerable<KRM.Core.vWebBackWaitingItem>
<div class="fieldset">
    <div class="legend"><span>Items Waiting For on Order(@ViewBag.OrderRef)</span></div>
    <div class="row-fluid">
        <div class="span12">
            <a class="btn" style="padding: 0; max-height: 30px; float: right" onclick="ExportCSVWithHead($('#tb-waitingitem'),'WaitingItems.csv',$('#tb-waitingitem-head'))">
                <img src="/img/icon-exel.png" style="max-height: 30px">
            </a>
            <table class="table table-bordered table-fix krmtable tbl-selected" data-height="200" id="tb-waitingitem">
                <thead id="tb-waitingitem-head">
                    <tr>
                        <th>Order Ref</th>
                        <th>Part Name</th>
                        <th>Part Id</th>
                        <th>Qty</th>
                        <th>Ware House Name</th>
                        <th>Expected Arrival Date</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>@item.OrderRef</td>
                            <td>@item.PartName</td>
                            <td>@item.PartId</td>
                            <td>@item.Qty</td>
                            <td>@item.WarehouseName</td>
                            <td>@item.ExpectedArrivalDate</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
